/*
 * StdNowPlayingModule.h
 *
 *  Created on: 27.07.2009
 *      Author: h3llfire
 */

#ifndef STDNOWPLAYINGMODULE_H_
#define STDNOWPLAYINGMODULE_H_

#include "../../core/interfaces/iModule.h"
#include "../../core/database/DBModule.h"
#include "../../core/events/SettingChangedEvent.h"
#include "../../core/events/StatusEvent.h"
#include "TrackInfo.h"
#include <wx/timer.h>

#include "gtk/Banshee.h"

namespace Impp {



class StdNowPlayingModule : public iModule{

	DECLARE_DYNAMIC_CLASS(StdNowPlayingModule)

private:
	DBModule module;
	wxTimer* timer;
	TrackInfo curTrackInfo;

public:
	StdNowPlayingModule();
	virtual ~StdNowPlayingModule();

	void onSettingChanged(SettingChangedEvent & event);
	void onOwnStatusChanging(StatusEvent & event);
	void setEnabled(bool enabled);

	virtual void moduleInit();
	virtual void moduleDestroy();

	void onTimer(wxTimerEvent & event);
};

}

#endif /* STDNOWPLAYINGMODULE_H_ */
